package com.example.userinterface.service;

import com.example.commonsinterface.po.City;
import com.example.userinterface.mapper.CityMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class UserRequstImpl implements UserRequset {

    @Autowired
    private CityMapper cityMapper;
    @Override
    public List<City> list() {
//        List<City> cityList = new ArrayList<>();
//        cityList.add(new City("101280101", "广州"));
//        cityList.add(new City("101280601", "深圳"));
        List<City> cityList =  cityMapper.list();
        return cityList;
    }
}